<!--学生月报详情-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>月报详情</title>
		<link rel="stylesheet" href="../../css/mui.min.css" />
		<link rel="stylesheet" href="../../css/timecontrol.min.css" />
		<link rel="stylesheet" href="../../css/base.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/weui.min.css">
		<link rel="stylesheet" type="text/css" href="../../css/attachmentCss.css">
		<style type="text/css" media="screen">
			.title {
				font-size: 14px;
			}
			.summary_div {
				border-top: 1px solid #ededed;
			}
			.summary_div .feeling {
				padding-bottom: 1px;
			}
			.feeling {
				border-bottom: 1px solid #ededed;
				padding-left: 14px;
			}
			.title {
				border-left: unset;
			}
			.score_div .feeling-text {
				background-size: 16px;
				margin-top: 15px;
				margin: 10px;
			}
			.score_div .feeling-text p {
				color: #646464;
				padding: 2px 2px;
			}
			.content_div {
				margin-top: 66px
			}
			.comment_div {
				padding-right: 20px;
				margin-top: 10px
			}
			.score_div .feeling-text {
				text-indent: 2em;
				background-size: 16px;
				margin-top: 15px;
				margin: 10px;
			}
			.score_div .feeling-text p {
				color: #646464;
				padding: 2px 2px;
			}
			.score_div {
				padding: 2px 5px;
				background: #fff
			}
			.star_score_div {
				padding: 10px;
			}
			.myScore-starscore {
				font-size: 14px;
				color: #646464;
				margin-left: 15px;
			}
			.star_score_div	.myScore-starscore .star img {
				margin-left: 3%;
				width: 18px;
			}
			.star_score_div	.top {
				margin-top: 10px;
			}
			.star {
				width: 67%;
			}
			.left {
				float: left;
			}
			.letter {
				width: 85px;
				line-height: 15px;
				padding: 4px 0px
			}
			.title img {
				height: 20px;
				padding-top: 4px
			}
			.summary_title {
				display: inline-block;
				background: url(../../icon/icon_summary_title.png) no-repeat left center;
				background-size: 20px;
				padding-left: 25px;
				padding-bottom: 0px;
				font-size: 14px;
			}
			.comment_title {
				display: inline-block;
				background: url(../../icon/icon_comment_title.png) no-repeat left center;
				background-size: 16px;
				padding-left: 25px;
				padding-bottom: 0px;
				font-size: 14px;
			}
			.grade_title {
				display: inline-block;
				background: url(../../icon/icon_grade_title.png) no-repeat left center;
				background-size: 16px;
				padding-left: 25px;
				padding-bottom: 0px;
				font-size: 14px;
			}
			.timeImgSpan {
				display: inline-block;
				background: url(../../icon/icon_timespan.png) no-repeat left center;
				background-size: 16px;
				padding-left: 25px;
				padding-bottom: 0px;
				font-size: 14px;
			}
			.attachment_title {
				display: inline-block;
				background: url(../../icon/icon_attachment.png) no-repeat left center;
				background-size: 20px;
				padding-left: 25px;
			}
			.padding25 {
				padding-left: 3px
			}
			.top_title {
				margin-top: 66px
			}
			.writeReport .ReviewWeekly_div {
				margin-top: 0px;
			}
			.attachment_div {
				padding-left: 10px;
				padding-right: 8px;
			}
			.weui_cells:after {
				border-bottom: unset;
			}
		</style>
	</head>
	<body>
		<div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar">
			<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span id="page">月报详情</span>
			<a class="base_right_item base_hide_item"> </a>
		</div>
		<div class="writeReport top_title">
			<div data-role="fieldcontain" class="timecontrol bgwhite padding25" id="">
				<span class="time_span base_title_font timeImgSpan font14" > 提交日期:</span>
				<span class="time_span base_title_font font14" id="now_time"> </span>
			</div>
			<div class="ReviewWeekly_div  summary_div">
				<div class="feeling">
					<p class="title summary_title font14" >
						月工作总结
					</p>
				</div>
				<div class="score_div">
					<div class="feeling-text">
						<p id="summary" style=" word-break: break-all">
							<!--	互通有无角度来讲，尤文拜仁之间的关系是不是最好的？ 由  拉姆s 发表在虎扑足球·足球话题区 https://bbs.hupu.com/topic
							尤文老哥，科曼，比达尔真好用。狗剩，黑贝用着还行吧？
							尤文拜仁，互通有无方面关系是不是最好的？
							当然，尤文皇马，拜仁皇马之间交易也有，人员流动关系也还可以。
							尤文：你团现教练当年都是我的人。赫迪拉挺好使还没花钱，穆拉塔又撸回去倒卖了不仗义啊。
							他团，J罗真大腿，解决了玻璃锅不在场的问题。罗本老了，这样的还有吗，来一打。来养老阿隆索差不多的也行啊。扣螺丝成你团大腿了吧？
							互通有无角度来讲，尤文拜仁之间的关系是不是最好的？ 由  拉姆s 发表在虎扑足球·足球话题区 https://bbs.hupu.com/topic
							尤文老哥，科曼，比达尔真好用。狗剩，黑贝用着还行吧？
							尤文拜仁，互通有无方面关系是不是最好的？
							当然，尤文皇马，拜仁皇马之间交易也有，人员流动关系也还可以。
							尤文：你团现教练当年都是我的人。赫迪拉挺好使还没花钱，穆拉塔又撸回去倒卖了不仗义啊。
							他团，J罗真大腿，解决了玻璃锅不在场的问题。罗本老了，这样的还有吗，来一打。来养老阿隆索差不多的也行啊。扣螺丝成你团大腿了吧？-->
						</p>
					</div>
				</div>
			</div>
		   <div class="text_feel"   id="attachment_div" style="display: none;border-bottom: unset">
				<div style="padding: 10px 10px;">
					<p class="title attachment_title "style="margin-bottom:0;">
						附件
					</p>
					<div class="feeling-text top_5 left_15" hidden="hidden" id="nullImg">
						<p>
							无
						</p>
					</div>
				</div>
				<div id="attachmentTableView" class="weui_cells fileDownLoad_Div"></div>
			</div>
			
			
			<div class="ReviewWeekly_div  comment_content_div">
				<div class="feeling" style="padding-bottom: 1px;">
					<p class="title comment_title font14" >
						评语
					</p>
				</div>
				<div class="score_div" >
					<div class="feeling-text">
						<p id="qycomment" style=" word-break: break-all">
							<!--互通有无角度来讲，尤文拜仁之间的关系是不是最好的？ 由  拉姆s 发表在虎扑足球·足球话题区 https://bbs.hupu.com/topic
							尤文老哥，科曼，比达尔真好用。狗剩，黑贝用着还行吧？
							尤文拜仁，互通有无方面关系是不是最好的？
							当然，尤文皇马，拜仁皇马之间交易也有，人员流动关系也还可以。
							尤文：你团现教练当年都是我的人。赫迪拉挺好使还没花钱，穆拉塔又撸回去倒卖了不仗义啊。
							他团，J罗真大腿，解决了玻璃锅不在场的问题。罗本老了，这样的还有吗，来一打。来养老阿隆索差不多的也行啊。扣螺丝成你团大腿了吧？
							互通有无角度来讲，尤文拜仁之间的关系是不是最好的？ 由  拉姆s 发表在虎扑足球·足球话题区 https://bbs.hupu.com/topic
							尤文老哥，科曼，比达尔真好用。狗剩，黑贝用着还行吧？
							尤文拜仁，互通有无方面关系是不是最好的？
							当然，尤文皇马，拜仁皇马之间交易也有，人员流动关系也还可以。
							尤文：你团现教练当年都是我的人。赫迪拉挺好使还没花钱，穆拉塔又撸回去倒卖了不仗义啊。
							他团，J罗真大腿，解决了玻璃锅不在场的问题。罗本老了，这样的还有吗，来一打。来养老阿隆索差不多的也行啊。扣螺丝成你团大腿了吧？-->
						</p>
					</div>
				</div>
			</div>
			<!--		<div class="ReviewWeekly_div  ">
			<div class="feeling">
			<p class="title  attachment_title" >
			附件内容
			</p>
			</div>
			<div class="score_div">
			<div class="fileDiv attachment_div" id="imgDiv" >
			<div class="feeling-text top_5 left_15" hidden="hidden" id="nullImg" style="border-bottom: unset">
			<p style="border-bottom: unset">
			无
			</p>
			</div>
			</div>
			<div id="attachmentTableView" class="weui_cells fileDownLoad_Div"></div>
			</div>
			</div>-->
		
			<div class="ReviewWeekly_div top_54 summary_div" style="margin-bottom: 66px;border-top: 0px">
				<div class="feeling">
					<p class="title grade_title font14" >
						企业评分
					</p>
				</div>
				<div class="star_score_div">
					<div class="myScore-starscore clearfix ">
						<div class="letter left">
							工作能力：
						</div>
						<div class="star left" id="taiduNum">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							工作态度：
						</div>
						<div class="star left" id="chuqinNum">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							职业素养：
						</div>
						<div class="star left" id="gzwcdNum">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							沟通能力：
						</div>
						<div class="star left" id="jnzwdNum">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png">
							<img src="../../image/icon_xingxingblue01.png" hidden="hidden">
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
	<script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/timeStampTool.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript" src="../../script/databaseOperation.js"></script>
	<script src="../../script/attachmentManager.js"></script>
	<script type="text/javascript" src="../../script/base64.min.js"></script>
	<script type="text/javascript" src="../../script/copyTool.js"></script>
	<script type="text/javascript">
		//	var monthid='';
		//实习计划状态
		//		var sxtypes = '';
		DBReady = function() {
			sendBuriedNotifi('0', '学生端月报列表详情', '094');
			var pageParam = api.pageParam;
			var monthid = pageParam.monthid;
			var sxtypes = pageParam.sxtypes;
			//获取学生实习计划状态
			//0：顶岗，1：认知，2:跟岗
			if (sxtypes == 0) {
				$('#dgsxqy').show();
				$('#dgsxm').show();
				$('#dgsxls').show();
				//跟岗实习
			} else if (sxtypes == 2) {
				$('#ggsxqy').show();
				$('#ggsxls').show();
			} else {
			}
			setupDownloadAttNotifi();
			loadMonthData(monthid);
			blockAddCopyClickWithIdArr(["summary", "qycomment", "lscomment"]);
		}
	   function sendBuriedNotifi(busionessid, pagetype, pagetypeid) {
			var userinfo = {
				uid : $api.getStorage('cfnetppuid'),
				jid : $api.getStorage('cfnetppjid'),
				uname : $api.getStorage('cfnetppusername'),
			}
			var data = {
				busionessid : busionessid,
				pagetype : pagetype,
				pagetypeid : pagetypeid,
				sourceurl : api.pageParam.sourceurl,
				sourcetitle : api.pageParam.sourcetitle,
				accesspageurl : window.location.pathname,
				accesspagetitle : document.title,
				userinfo : userinfo
			}
			SendBehaviorTrajectoriesNotifi_Study(data);
		}
		//判断是否在同一个月
		function isSameMonth(nomal_time, now_time) {
			var nomal_month = new Date(nomal_time * 1000).getMonth() + 1;
			var now_month = new Date(now_time * 1000).getMonth() + 1;
			var nomal_year = new Date(nomal_time * 1000).getFullYear();
			var now_year = new Date(now_time * 1000).getFullYear();
			if (nomal_year == now_year) {
				if (nomal_month == now_month) {
					return true;
				} else {
					return false;
				}
			} else {
				return false;
			}
		}

		function loadMonthData(monthid) {
			var param = {
				jid : $api.getStorage('cfnetppjid'),
				uid : $api.getStorage('cfnetppuid'),
				ybid : monthid //月报id
			};
			cfnetppPOST(urlLsydetails, param, false, function(data, status) {
				if (status == 'success') {
					if (data.status == 1) {
						var list = data.json;
						var dataArr = list.xszp;
						if (isSameMonth(dataArr.instime, list.time) == true) {
							$('#now_time').text(getLocalTime(dataArr.instime));
							$('#timediv_one').hide();
						} else {
							$('#timediv_one').show();
							$('#now_time').text(getLocalTime(list.time));
							$('#nomal_time').text(getLocalTime(dataArr.instime));
						}
						//学生比重
						var comment = dataArr.comments;
						var reviewstatus = dataArr.reviewstatus;
						//月工作总结
						var summary = dataArr.summary;
						var urldata = dataArr.urldata;
						if (urldata != null && urldata != '') {
							$('#attachment_div').show();
						}
						var arr = new Array();
						for (var i = 0; i < urldata.length; i++) {
							var monthData = urldata[i];
							var data = {
								id : monthData.id,
								url : monthData.enclosureurl,
								size : monthData.enclosuresize,
								name : monthData.enclosurename,
							};
							arr.push(data);
						}
						saveAttDatasToDb(arr, '');
						//企业
						var qyArr = list.qypf;
						//企业评语
						var qcomment = qyArr.qcomment;
						//工作能力
						var qsxtd = parseInt(qyArr.qsxtd) / 20;
						//工作态度
						var qcql = parseInt(qyArr.qcql) / 20;
						//职业素养
						var qjnzwd = parseInt(qyArr.qjnzwd) / 20;
						//沟通能力
						var qgzwcd = parseInt(qyArr.qgzwcd) / 20;
						//学生比重
						$('#summary').html(Base64.decode(summary));
						if (qcomment == null) {
							document.getElementById("qycomment").style.color = "#D9D9D9";
							$('#qycomment').text('暂无企业评价，请耐心等待');
						} else {
							$('#qycomment').text(Base64.decode(qcomment));
						}
						$("#taiduNum img").eq(qsxtd).prevAll().attr("src", "../../image/icon_xingxingblue.png");
						$("#chuqinNum img").eq(qcql).prevAll().attr("src", "../../image/icon_xingxingblue.png");
						$("#jnzwdNum img").eq(qjnzwd).prevAll().attr("src", "../../image/icon_xingxingblue.png");
						$("#gzwcdNum img").eq(qgzwcd).prevAll().attr("src", "../../image/icon_xingxingblue.png");
						
					} else {
						api.toast({
							msg : '获取数据失败',
							duration : 2000,
							location : 'bottom'
						});
					}
				} else {
					api.toast({
						msg : '网络连接失败',
						duration : 2000,
						location : 'bottom'
					});
				}
			});
		}

		function backClick() {
			sendBuriedNotifi('1', '学生端月报列表详情', '094');
			api.closeWin();
		}
	</script>
</html>